package com.guli.order;

import com.guli.order.bean.Order;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName OrderApplication
 * @Description TODO
 * @Author YinLiangTao Email:1517535831@qq.com
 * @Date 2022/4/20 10:26
 * @Version 1.0
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.guli"})  //为了能访问到swagger的配置文件（包名要一致）
@MapperScan("com.guli.order.mapper")
@EnableDiscoveryClient //可以不用加，默认自动添加（nacos注册中心）
@EnableFeignClients   //服务调用（调用端）
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
